package org.poem;

import feign.Request;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * @author poem
 */
@EnableDiscoveryClient
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients(basePackages = "org.poem")
public class ConsumerFeignApplication {
    @Bean
    public Request.Options feignRequestOptions() {
        return new Request.Options(6000,6000);
    }
    public static void main(String[] args) {
        SpringApplication.run(ConsumerFeignApplication.class, args);
    }
}
